﻿Imports Tajan.Monitoring.Entities

Public Class DomainRepository
    Inherits BaseRepository

    Public Function GetByName(domainName As String) As Domain
        Return (From p In Me.Context.Domains Where p.Name = domainName Take 1).SingleOrDefault
    End Function

    Public Sub Add(domain As Domain)
        Me.Context.Domains.Add(domain)
    End Sub

End Class
